<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
<title>人物信息显示</title>
</head>
<body>
	<div class="bs-example" data-example-id="hoverable-table">
    <table class="table table-hover">
      <thead>
        <tr>
          <th>序号</th>
          <th>账号</th>
          <th>密码</th>
          <th>游戏名称</th>
          <th>游戏等级</th>
          <th>游戏金钱</th>
          <th>自我感觉</th>
          <th>操作</th>
        </tr>
      </thead>
      
      <tbody>
      <c:forEach items="${GameList }" var="game" varStatus="g" >
        <tr>
          <th scope="row">${g.count }</th>
          <td>${game.code }</td>
          <td>${game.password }</td>
          <td>${game.name }</td>
          <td>${game.grade }</td>
          <td>${game.money }</td>
          <td>${game.mome }</td>
          <td>
          <a href="<%=request.getContextPath() %>/GameServlet?command=preUpdate&id=${game.id}">修改</a>
          |
          <a href="<%=request.getContextPath() %>/GameServlet?command=delete&id=${game.id}">删除</a></td>
        </tr>
      </c:forEach>
      </tbody>
    </table>
  </div>
  
<script src="<%=request.getContextPath() %>/static/common/plugin/jquery.min.js"></script>
<script src="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>	
</body>
</html>